package com.cinc.ebc.mm.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.ebc.mm.entity.MmStockInOutDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cinc.ebc.mm.model.MmStockInOutDetailModel;
import com.cinc.ebc.mm.vo.MmStockInOutDetailPage;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 库存单据明细
 * @Author: jeecg-boot
 * @Date:   2022-04-05
 * @Version: V1.0
 */
public interface MmStockInOutDetailMapper extends BaseMapper<MmStockInOutDetail> {

	public boolean deleteByMainId(@Param("mainId") String mainId);

	public List<MmStockInOutDetail> selectByMainId(@Param("mainId") String mainId);

    List<MmStockInOutDetailModel> selectPurchaseInOutList(Page<MmStockInOutDetailModel> page, @Param("detail") MmStockInOutDetailPage mmStockInOutDetailPage);

	List<MmStockInOutDetailModel> selectOtherInOutList(Page<MmStockInOutDetailModel> page, @Param("detail") MmStockInOutDetailPage mmStockInOutDetailPage);

    List<MmStockInOutDetailModel> selectDetailList(Page<MmStockInOutDetailModel> page,
												   @Param("detail") MmStockInOutDetailPage detailPage,
												   @Param("permissionSql") String permissionSql);
}
